#include "core_pch.h"
#include "core.h"
#include "Data.h"

size_t RawTypeSize( EDataType type, bool isAry)
{
	if( !isAry)
	{
		if( Data_Bool == type)
		{
			return sizeof( bool);
		}
		else if( Data_S32 == type)
		{
			return sizeof( s32_t);
		}
		else if( Data_U32 == type)
		{
			return sizeof( u32_t);
		}
		else if( Data_F32 == type)
		{
			return sizeof( float);
		}
		else if( Data_Vector2 == type)
		{
			return sizeof( vec2_t);
		}
		else if( Data_Vector3 == type)
		{
			return sizeof( vec3_t);
		}
		else if( Data_Rot4 == type)
		{
			return sizeof( rot4_t);
		}
		else if( Data_Color4 == type)
		{
			return sizeof( color4_t);
		}
		else if( Data_Enum == type)
		{
			return sizeof( s32_t);
		}
		else 
		{
			_check( false);
			return 0;
		}
	}
	else
	{
		_check( false);
		return 0;
	}
}
